﻿@using RuoVea.ExUtil;

@using Microsoft.Extensions.Options

@{
    ViewData["Title"] = "作业";
    Layout = "";
}
<!DOCTYPE html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewData["Title"] - MES管理系统</title>
    <link href="/elementui/index.css" rel="stylesheet" />
    <link href="/elementui/index.extend.css?v=22" rel="stylesheet" />
    <style scoped>


    </style>
</head>
<body>
    <div id="main" v-cloak>



        <el-admin logo-src="/img/logo.png"
                  @* :current-lang="(typeof $i18n.locale==='string' )?$i18n.locale:'ja'" *@
                  logo-title="订单管理系统"
                  :menu-data="menuData"
                  user-name="胃炎康"
                  user-avatar=""
        @* v-on:handle-edit-pass="switchLanguage" *@
        @* edit-pass-txt="密码" *@
        @* v-on:handle-logout="switchLanguage" *@
        @* v-bind:background-color="backgroundColor"
                  v-bind:text-color="textColor"
                  v-bind:active-text-color="activeTextColor" *@>
            <div>
                <el-button @@click="switchLanguage('en')">English</el-button>
                <el-button @@click="switchLanguage('fr')">法文</el-button>
                <el-button @@click="switchLanguage('ja')">日文</el-button>
                <el-button @@click="switchLanguage('vi')">越南文</el-button>
                <el-button @@click="switchLanguage('zh')">中文</el-button>
                <el-button @@click="switchLanguage('zhhk')">粤语</el-button>
                <el-button @@click="switchLanguage('zhtw')">繁体中文</el-button>
            </div>

            <div>
                <ul>
                    <li>{{ $t("extend.mescode401") }}</li>
                    <li>{{ $t("extend.mescode403") }}</li>
                    <li>{{ $t("extend.mescode404") }}</li>
                    <li>{{ $t("extend.mescode500") }}</li>
                    <li>{{ $t("extend.mescode504") }}</li>

                </ul>
                <ol>
                    <li>{{ $t("extend.mescodeother") }}</li>
                    <li>{{ $t("extend.confirmexit") }}</li>
                    <li>{{ $t("extend.tips") }}</li>
                    <li>{{ $t("extend.determine") }}</li>
                    <li>{{ $t("extend.cancel") }}</li>
                    <li>{{ $t("extend.changepassword") }}</li>
                    <li>{{ $t("extend.logout") }}</li>
                    <li>{{ $t("extend.aresureclose") }}</li>
                    <li>{{ $t("extend.browserversionlow") }}</li>
                </ol>


                <ul>
                    <li>{{ $t("navigateBar.hotspot") }}</li>
                    <li>{{ $t("navigateBar.experience") }}</li>
                    <li>{{ $t("navigateBar.focus") }}</li>
                    <li>{{ $t("navigateBar.recommend") }}</li>
                </ul>
                <ol>
                    <li>{{ $t("tabs.work") }}</li>
                    <li>{{ $t("tabs.private") }}</li>
                    <li>{{ $t("tabs.collect") }}</li>
                    <li>{{ $t("tabs.like") }}</li>
                </ol>

            </div>
        </el-admin>
    </div>


    <script type="text/javascript" src="/vue/vue.js?v=2.0"></script>
    <script type="text/javascript" src="/vue/vue-i18n.min.js?v=2.0"></script>
    <script type="text/javascript" src="/elementui/index.js"></script>
    <script type="text/javascript" src="/elementui/index.extend.js?v=@RuoVea.ExUtil.Time.Time.Now.GetTimeStamp()"></script>

    <script type="text/javascript" src="/vue/axios.min.js"></script>
    <script type="text/javascript" src="/elementui/locale/en.js"></script>
    <script type="text/javascript" src="/elementui/locale/fr.js"></script>
    <script type="text/javascript" src="/elementui/locale/ja.js"></script>
    <script type="text/javascript" src="/elementui/locale/vi.js"></script>
    <script type="text/javascript" src="/elementui/locale/zh.js"></script>
    <script type="text/javascript" src="/elementui/locale/zhhk.js"></script>
    <script type="text/javascript" src="/elementui/locale/zhtw.js"></script>
    <script>

        // 组合语言包对象
        const messages = {
            en,
            fr,
            ja,
            vi,
            zh,
            zhhk,
            zhtw
        };
        const i18n = new VueI18n({
            locale: en,//locale: navigator.language // 获取浏览器的语言
            messages
        });

        var $taskVue = new Vue({
            // mixins: [localeI18n],
            el: "#main",
            i18n,
            data() {
                return {
                    menuData: [{ title: "导航1", path: "/d1", icon: "el-icon-menu", submenu: [{ title: "导航2", path: "/d2", icon: "el-icon-location", }, { title: "导航3", path: "/d3", icon: "el-icon-setting", }] },]
                }
            },
            create() {

            },
            methods: {
                switchLanguage(lang) {
                    this.i18n.currentLang = lang
                    this.$i18n.locale = lang
                }
            }
        });

    </script>
</body>
</>
